package com.koron.common.core.feignConfig;

import feign.hystrix.FallbackFactory;

import java.lang.reflect.Method;

/**
 * @ClassName ExtFallbackFactory
 * @description
 * @Author zhouj
 * @Date 2021/11/2 10:05
 */
public abstract class ExtFallbackFactory<T> implements FallbackFactory<T> {
    @Override
    public T create(Throwable cause) {
        // donothing
        return null;
    }

    // 需要method获取对应的接口class
    public abstract T create(Method method, Throwable cause);
}